// 封装收藏页相关接口
import request from '@/utils/request.js'

// 获取用户收藏的商品数据
export const getCollectedGoodsService = ({
	user_id,
	is_post
}) => {
	return request({
		url: `/collection/user/${user_id}`,
		method: 'GET',
		params: {
			is_post
		}
	})
}

// 获取用户收藏的攻略数据
export const getCollectedPostService = ({
	user_id,
	is_post
}) => {
	return request({
		url: `/collection/user/${user_id}`,
		method: 'GET',
		params: {
			is_post
		}
	})
}